<?php

namespace app\api\controller;


use app\common\controller\Api;
use think\Db;


class Qixian extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function index()
    {
        $name = trim($this->request->param('keyword', ''));

        $list = Db::name('qixian_school')->where('status',1)->where('name','like',"%{$name}%")->select();

        $this->success('成功',$list);
    }



}
